//
//  WBAddViewController.swift
//  WJ微博
//
//  Created by 王杰 on 2017/1/19.
//  Copyright © 2017年 WangJie. All rights reserved.
//

import UIKit

class WBAddViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
        
    }
    // 重写父类的方法
    override func setupUI() {
        
        super.setupUI()
        
        title = "Add"
        
        navItem.leftBarButtonItem = UIBarButtonItem(title: "返回", target: self, action: #selector(dismissCurrentVc))
    }
    
    // 隐藏当前界面
    func dismissCurrentVc() {
        
        // 对应前面的 modal
        self.dismiss(animated: true, completion: nil)
    }
}
